import SvgIcon from '@/components/SvgIcon/index.vue'
import type { App } from 'vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const GlobalComponents = [SvgIcon]

export default {
  install(Vue: App) {
    GlobalComponents.map((component) => Vue.component(component.name as string, component))

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      Vue.component(key, component)
    }
  }
}
